/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code EmojiChatMessage}
 */
public final class EmojiChatMessage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:EmojiChatMessage)
    EmojiChatMessageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use EmojiChatMessage.newBuilder() to construct.
  private EmojiChatMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private EmojiChatMessage() {
    defaultContent_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new EmojiChatMessage();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Douyin.internal_static_EmojiChatMessage_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Douyin.internal_static_EmojiChatMessage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            EmojiChatMessage.class, Builder.class);
  }

  private int bitField0_;
  public static final int COMMON_FIELD_NUMBER = 1;
  private Common common_;
  /**
   * <code>.Common common = 1;</code>
   * @return Whether the common field is set.
   */
  @Override
  public boolean hasCommon() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.Common common = 1;</code>
   * @return The common.
   */
  @Override
  public Common getCommon() {
    return common_ == null ? Common.getDefaultInstance() : common_;
  }
  /**
   * <code>.Common common = 1;</code>
   */
  @Override
  public CommonOrBuilder getCommonOrBuilder() {
    return common_ == null ? Common.getDefaultInstance() : common_;
  }

  public static final int USER_FIELD_NUMBER = 2;
  private User user_;
  /**
   * <code>.User user = 2;</code>
   * @return Whether the user field is set.
   */
  @Override
  public boolean hasUser() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * <code>.User user = 2;</code>
   * @return The user.
   */
  @Override
  public User getUser() {
    return user_ == null ? User.getDefaultInstance() : user_;
  }
  /**
   * <code>.User user = 2;</code>
   */
  @Override
  public UserOrBuilder getUserOrBuilder() {
    return user_ == null ? User.getDefaultInstance() : user_;
  }

  public static final int EMOJIID_FIELD_NUMBER = 3;
  private long emojiId_ = 0L;
  /**
   * <code>uint64 emojiId = 3;</code>
   * @return The emojiId.
   */
  @Override
  public long getEmojiId() {
    return emojiId_;
  }

  public static final int EMOJICONTENT_FIELD_NUMBER = 4;
  private Text emojiContent_;
  /**
   * <code>.Text emojiContent = 4;</code>
   * @return Whether the emojiContent field is set.
   */
  @Override
  public boolean hasEmojiContent() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * <code>.Text emojiContent = 4;</code>
   * @return The emojiContent.
   */
  @Override
  public Text getEmojiContent() {
    return emojiContent_ == null ? Text.getDefaultInstance() : emojiContent_;
  }
  /**
   * <code>.Text emojiContent = 4;</code>
   */
  @Override
  public TextOrBuilder getEmojiContentOrBuilder() {
    return emojiContent_ == null ? Text.getDefaultInstance() : emojiContent_;
  }

  public static final int DEFAULTCONTENT_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private volatile Object defaultContent_ = "";
  /**
   * <code>string defaultContent = 5;</code>
   * @return The defaultContent.
   */
  @Override
  public String getDefaultContent() {
    Object ref = defaultContent_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      defaultContent_ = s;
      return s;
    }
  }
  /**
   * <code>string defaultContent = 5;</code>
   * @return The bytes for defaultContent.
   */
  @Override
  public com.google.protobuf.ByteString
      getDefaultContentBytes() {
    Object ref = defaultContent_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      defaultContent_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BACKGROUNDIMAGE_FIELD_NUMBER = 6;
  private Image backgroundImage_;
  /**
   * <code>.Image backgroundImage = 6;</code>
   * @return Whether the backgroundImage field is set.
   */
  @Override
  public boolean hasBackgroundImage() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * <code>.Image backgroundImage = 6;</code>
   * @return The backgroundImage.
   */
  @Override
  public Image getBackgroundImage() {
    return backgroundImage_ == null ? Image.getDefaultInstance() : backgroundImage_;
  }
  /**
   * <code>.Image backgroundImage = 6;</code>
   */
  @Override
  public ImageOrBuilder getBackgroundImageOrBuilder() {
    return backgroundImage_ == null ? Image.getDefaultInstance() : backgroundImage_;
  }

  public static final int FROMINTERCOM_FIELD_NUMBER = 7;
  private boolean fromIntercom_ = false;
  /**
   * <code>bool fromIntercom = 7;</code>
   * @return The fromIntercom.
   */
  @Override
  public boolean getFromIntercom() {
    return fromIntercom_;
  }

  public static final int INTERCOMHIDEUSERCARD_FIELD_NUMBER = 8;
  private boolean intercomHideUserCard_ = false;
  /**
   * <code>bool intercomHideUserCard = 8;</code>
   * @return The intercomHideUserCard.
   */
  @Override
  public boolean getIntercomHideUserCard() {
    return intercomHideUserCard_;
  }

  public static final int PUBLIC_AREA_COMMON_FIELD_NUMBER = 9;
  private PublicAreaCommon publicAreaCommon_;
  /**
   * <code>.PublicAreaCommon public_area_common = 9;</code>
   * @return Whether the publicAreaCommon field is set.
   */
  @Override
  public boolean hasPublicAreaCommon() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * <code>.PublicAreaCommon public_area_common = 9;</code>
   * @return The publicAreaCommon.
   */
  @Override
  public PublicAreaCommon getPublicAreaCommon() {
    return publicAreaCommon_ == null ? PublicAreaCommon.getDefaultInstance() : publicAreaCommon_;
  }
  /**
   * <code>.PublicAreaCommon public_area_common = 9;</code>
   */
  @Override
  public PublicAreaCommonOrBuilder getPublicAreaCommonOrBuilder() {
    return publicAreaCommon_ == null ? PublicAreaCommon.getDefaultInstance() : publicAreaCommon_;
  }

  private byte memoizedIsInitialized = -1;
  @Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getCommon());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getUser());
    }
    if (emojiId_ != 0L) {
      output.writeUInt64(3, emojiId_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(4, getEmojiContent());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultContent_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, defaultContent_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(6, getBackgroundImage());
    }
    if (fromIntercom_ != false) {
      output.writeBool(7, fromIntercom_);
    }
    if (intercomHideUserCard_ != false) {
      output.writeBool(8, intercomHideUserCard_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(9, getPublicAreaCommon());
    }
    getUnknownFields().writeTo(output);
  }

  @Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCommon());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getUser());
    }
    if (emojiId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, emojiId_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getEmojiContent());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultContent_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, defaultContent_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getBackgroundImage());
    }
    if (fromIntercom_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(7, fromIntercom_);
    }
    if (intercomHideUserCard_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(8, intercomHideUserCard_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, getPublicAreaCommon());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof EmojiChatMessage)) {
      return super.equals(obj);
    }
    EmojiChatMessage other = (EmojiChatMessage) obj;

    if (hasCommon() != other.hasCommon()) return false;
    if (hasCommon()) {
      if (!getCommon()
          .equals(other.getCommon())) return false;
    }
    if (hasUser() != other.hasUser()) return false;
    if (hasUser()) {
      if (!getUser()
          .equals(other.getUser())) return false;
    }
    if (getEmojiId()
        != other.getEmojiId()) return false;
    if (hasEmojiContent() != other.hasEmojiContent()) return false;
    if (hasEmojiContent()) {
      if (!getEmojiContent()
          .equals(other.getEmojiContent())) return false;
    }
    if (!getDefaultContent()
        .equals(other.getDefaultContent())) return false;
    if (hasBackgroundImage() != other.hasBackgroundImage()) return false;
    if (hasBackgroundImage()) {
      if (!getBackgroundImage()
          .equals(other.getBackgroundImage())) return false;
    }
    if (getFromIntercom()
        != other.getFromIntercom()) return false;
    if (getIntercomHideUserCard()
        != other.getIntercomHideUserCard()) return false;
    if (hasPublicAreaCommon() != other.hasPublicAreaCommon()) return false;
    if (hasPublicAreaCommon()) {
      if (!getPublicAreaCommon()
          .equals(other.getPublicAreaCommon())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCommon()) {
      hash = (37 * hash) + COMMON_FIELD_NUMBER;
      hash = (53 * hash) + getCommon().hashCode();
    }
    if (hasUser()) {
      hash = (37 * hash) + USER_FIELD_NUMBER;
      hash = (53 * hash) + getUser().hashCode();
    }
    hash = (37 * hash) + EMOJIID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getEmojiId());
    if (hasEmojiContent()) {
      hash = (37 * hash) + EMOJICONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getEmojiContent().hashCode();
    }
    hash = (37 * hash) + DEFAULTCONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getDefaultContent().hashCode();
    if (hasBackgroundImage()) {
      hash = (37 * hash) + BACKGROUNDIMAGE_FIELD_NUMBER;
      hash = (53 * hash) + getBackgroundImage().hashCode();
    }
    hash = (37 * hash) + FROMINTERCOM_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getFromIntercom());
    hash = (37 * hash) + INTERCOMHIDEUSERCARD_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIntercomHideUserCard());
    if (hasPublicAreaCommon()) {
      hash = (37 * hash) + PUBLIC_AREA_COMMON_FIELD_NUMBER;
      hash = (53 * hash) + getPublicAreaCommon().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static EmojiChatMessage parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static EmojiChatMessage parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static EmojiChatMessage parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static EmojiChatMessage parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static EmojiChatMessage parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static EmojiChatMessage parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static EmojiChatMessage parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static EmojiChatMessage parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static EmojiChatMessage parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static EmojiChatMessage parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static EmojiChatMessage parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static EmojiChatMessage parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(EmojiChatMessage prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code EmojiChatMessage}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:EmojiChatMessage)
      EmojiChatMessageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Douyin.internal_static_EmojiChatMessage_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Douyin.internal_static_EmojiChatMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              EmojiChatMessage.class, Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EmojiChatMessage.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCommonFieldBuilder();
        getUserFieldBuilder();
        getEmojiContentFieldBuilder();
        getBackgroundImageFieldBuilder();
        getPublicAreaCommonFieldBuilder();
      }
    }
    @Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      user_ = null;
      if (userBuilder_ != null) {
        userBuilder_.dispose();
        userBuilder_ = null;
      }
      emojiId_ = 0L;
      emojiContent_ = null;
      if (emojiContentBuilder_ != null) {
        emojiContentBuilder_.dispose();
        emojiContentBuilder_ = null;
      }
      defaultContent_ = "";
      backgroundImage_ = null;
      if (backgroundImageBuilder_ != null) {
        backgroundImageBuilder_.dispose();
        backgroundImageBuilder_ = null;
      }
      fromIntercom_ = false;
      intercomHideUserCard_ = false;
      publicAreaCommon_ = null;
      if (publicAreaCommonBuilder_ != null) {
        publicAreaCommonBuilder_.dispose();
        publicAreaCommonBuilder_ = null;
      }
      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Douyin.internal_static_EmojiChatMessage_descriptor;
    }

    @Override
    public EmojiChatMessage getDefaultInstanceForType() {
      return EmojiChatMessage.getDefaultInstance();
    }

    @Override
    public EmojiChatMessage build() {
      EmojiChatMessage result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public EmojiChatMessage buildPartial() {
      EmojiChatMessage result = new EmojiChatMessage(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(EmojiChatMessage result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.common_ = commonBuilder_ == null
            ? common_
            : commonBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.user_ = userBuilder_ == null
            ? user_
            : userBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.emojiId_ = emojiId_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.emojiContent_ = emojiContentBuilder_ == null
            ? emojiContent_
            : emojiContentBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.defaultContent_ = defaultContent_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.backgroundImage_ = backgroundImageBuilder_ == null
            ? backgroundImage_
            : backgroundImageBuilder_.build();
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.fromIntercom_ = fromIntercom_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.intercomHideUserCard_ = intercomHideUserCard_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.publicAreaCommon_ = publicAreaCommonBuilder_ == null
            ? publicAreaCommon_
            : publicAreaCommonBuilder_.build();
        to_bitField0_ |= 0x00000010;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @Override
    public Builder clone() {
      return super.clone();
    }
    @Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.setField(field, value);
    }
    @Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.addRepeatedField(field, value);
    }
    @Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof EmojiChatMessage) {
        return mergeFrom((EmojiChatMessage)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(EmojiChatMessage other) {
      if (other == EmojiChatMessage.getDefaultInstance()) return this;
      if (other.hasCommon()) {
        mergeCommon(other.getCommon());
      }
      if (other.hasUser()) {
        mergeUser(other.getUser());
      }
      if (other.getEmojiId() != 0L) {
        setEmojiId(other.getEmojiId());
      }
      if (other.hasEmojiContent()) {
        mergeEmojiContent(other.getEmojiContent());
      }
      if (!other.getDefaultContent().isEmpty()) {
        defaultContent_ = other.defaultContent_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (other.hasBackgroundImage()) {
        mergeBackgroundImage(other.getBackgroundImage());
      }
      if (other.getFromIntercom() != false) {
        setFromIntercom(other.getFromIntercom());
      }
      if (other.getIntercomHideUserCard() != false) {
        setIntercomHideUserCard(other.getIntercomHideUserCard());
      }
      if (other.hasPublicAreaCommon()) {
        mergePublicAreaCommon(other.getPublicAreaCommon());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @Override
    public final boolean isInitialized() {
      return true;
    }

    @Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getCommonFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getUserFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 24: {
              emojiId_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 34: {
              input.readMessage(
                  getEmojiContentFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 42: {
              defaultContent_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 50: {
              input.readMessage(
                  getBackgroundImageFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            case 56: {
              fromIntercom_ = input.readBool();
              bitField0_ |= 0x00000040;
              break;
            } // case 56
            case 64: {
              intercomHideUserCard_ = input.readBool();
              bitField0_ |= 0x00000080;
              break;
            } // case 64
            case 74: {
              input.readMessage(
                  getPublicAreaCommonFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000100;
              break;
            } // case 74
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private Common common_;
    private com.google.protobuf.SingleFieldBuilderV3<
        Common, Common.Builder, CommonOrBuilder> commonBuilder_;
    /**
     * <code>.Common common = 1;</code>
     * @return Whether the common field is set.
     */
    public boolean hasCommon() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.Common common = 1;</code>
     * @return The common.
     */
    public Common getCommon() {
      if (commonBuilder_ == null) {
        return common_ == null ? Common.getDefaultInstance() : common_;
      } else {
        return commonBuilder_.getMessage();
      }
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder setCommon(Common value) {
      if (commonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        common_ = value;
      } else {
        commonBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder setCommon(
        Common.Builder builderForValue) {
      if (commonBuilder_ == null) {
        common_ = builderForValue.build();
      } else {
        commonBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder mergeCommon(Common value) {
      if (commonBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          common_ != null &&
          common_ != Common.getDefaultInstance()) {
          getCommonBuilder().mergeFrom(value);
        } else {
          common_ = value;
        }
      } else {
        commonBuilder_.mergeFrom(value);
      }
      if (common_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Builder clearCommon() {
      bitField0_ = (bitField0_ & ~0x00000001);
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public Common.Builder getCommonBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCommonFieldBuilder().getBuilder();
    }
    /**
     * <code>.Common common = 1;</code>
     */
    public CommonOrBuilder getCommonOrBuilder() {
      if (commonBuilder_ != null) {
        return commonBuilder_.getMessageOrBuilder();
      } else {
        return common_ == null ?
            Common.getDefaultInstance() : common_;
      }
    }
    /**
     * <code>.Common common = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        Common, Common.Builder, CommonOrBuilder>
        getCommonFieldBuilder() {
      if (commonBuilder_ == null) {
        commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            Common, Common.Builder, CommonOrBuilder>(
                getCommon(),
                getParentForChildren(),
                isClean());
        common_ = null;
      }
      return commonBuilder_;
    }

    private User user_;
    private com.google.protobuf.SingleFieldBuilderV3<
        User, User.Builder, UserOrBuilder> userBuilder_;
    /**
     * <code>.User user = 2;</code>
     * @return Whether the user field is set.
     */
    public boolean hasUser() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.User user = 2;</code>
     * @return The user.
     */
    public User getUser() {
      if (userBuilder_ == null) {
        return user_ == null ? User.getDefaultInstance() : user_;
      } else {
        return userBuilder_.getMessage();
      }
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder setUser(User value) {
      if (userBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        user_ = value;
      } else {
        userBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder setUser(
        User.Builder builderForValue) {
      if (userBuilder_ == null) {
        user_ = builderForValue.build();
      } else {
        userBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder mergeUser(User value) {
      if (userBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          user_ != null &&
          user_ != User.getDefaultInstance()) {
          getUserBuilder().mergeFrom(value);
        } else {
          user_ = value;
        }
      } else {
        userBuilder_.mergeFrom(value);
      }
      if (user_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder clearUser() {
      bitField0_ = (bitField0_ & ~0x00000002);
      user_ = null;
      if (userBuilder_ != null) {
        userBuilder_.dispose();
        userBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public User.Builder getUserBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getUserFieldBuilder().getBuilder();
    }
    /**
     * <code>.User user = 2;</code>
     */
    public UserOrBuilder getUserOrBuilder() {
      if (userBuilder_ != null) {
        return userBuilder_.getMessageOrBuilder();
      } else {
        return user_ == null ?
            User.getDefaultInstance() : user_;
      }
    }
    /**
     * <code>.User user = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        User, User.Builder, UserOrBuilder>
        getUserFieldBuilder() {
      if (userBuilder_ == null) {
        userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            User, User.Builder, UserOrBuilder>(
                getUser(),
                getParentForChildren(),
                isClean());
        user_ = null;
      }
      return userBuilder_;
    }

    private long emojiId_ ;
    /**
     * <code>uint64 emojiId = 3;</code>
     * @return The emojiId.
     */
    @Override
    public long getEmojiId() {
      return emojiId_;
    }
    /**
     * <code>uint64 emojiId = 3;</code>
     * @param value The emojiId to set.
     * @return This builder for chaining.
     */
    public Builder setEmojiId(long value) {

      emojiId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 emojiId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearEmojiId() {
      bitField0_ = (bitField0_ & ~0x00000004);
      emojiId_ = 0L;
      onChanged();
      return this;
    }

    private Text emojiContent_;
    private com.google.protobuf.SingleFieldBuilderV3<
        Text, Text.Builder, TextOrBuilder> emojiContentBuilder_;
    /**
     * <code>.Text emojiContent = 4;</code>
     * @return Whether the emojiContent field is set.
     */
    public boolean hasEmojiContent() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     * @return The emojiContent.
     */
    public Text getEmojiContent() {
      if (emojiContentBuilder_ == null) {
        return emojiContent_ == null ? Text.getDefaultInstance() : emojiContent_;
      } else {
        return emojiContentBuilder_.getMessage();
      }
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    public Builder setEmojiContent(Text value) {
      if (emojiContentBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        emojiContent_ = value;
      } else {
        emojiContentBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    public Builder setEmojiContent(
        Text.Builder builderForValue) {
      if (emojiContentBuilder_ == null) {
        emojiContent_ = builderForValue.build();
      } else {
        emojiContentBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    public Builder mergeEmojiContent(Text value) {
      if (emojiContentBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
          emojiContent_ != null &&
          emojiContent_ != Text.getDefaultInstance()) {
          getEmojiContentBuilder().mergeFrom(value);
        } else {
          emojiContent_ = value;
        }
      } else {
        emojiContentBuilder_.mergeFrom(value);
      }
      if (emojiContent_ != null) {
        bitField0_ |= 0x00000008;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    public Builder clearEmojiContent() {
      bitField0_ = (bitField0_ & ~0x00000008);
      emojiContent_ = null;
      if (emojiContentBuilder_ != null) {
        emojiContentBuilder_.dispose();
        emojiContentBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    public Text.Builder getEmojiContentBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getEmojiContentFieldBuilder().getBuilder();
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    public TextOrBuilder getEmojiContentOrBuilder() {
      if (emojiContentBuilder_ != null) {
        return emojiContentBuilder_.getMessageOrBuilder();
      } else {
        return emojiContent_ == null ?
            Text.getDefaultInstance() : emojiContent_;
      }
    }
    /**
     * <code>.Text emojiContent = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        Text, Text.Builder, TextOrBuilder>
        getEmojiContentFieldBuilder() {
      if (emojiContentBuilder_ == null) {
        emojiContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            Text, Text.Builder, TextOrBuilder>(
                getEmojiContent(),
                getParentForChildren(),
                isClean());
        emojiContent_ = null;
      }
      return emojiContentBuilder_;
    }

    private Object defaultContent_ = "";
    /**
     * <code>string defaultContent = 5;</code>
     * @return The defaultContent.
     */
    public String getDefaultContent() {
      Object ref = defaultContent_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        defaultContent_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string defaultContent = 5;</code>
     * @return The bytes for defaultContent.
     */
    public com.google.protobuf.ByteString
        getDefaultContentBytes() {
      Object ref = defaultContent_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        defaultContent_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string defaultContent = 5;</code>
     * @param value The defaultContent to set.
     * @return This builder for chaining.
     */
    public Builder setDefaultContent(
        String value) {
      if (value == null) { throw new NullPointerException(); }
      defaultContent_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>string defaultContent = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDefaultContent() {
      defaultContent_ = getDefaultInstance().getDefaultContent();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * <code>string defaultContent = 5;</code>
     * @param value The bytes for defaultContent to set.
     * @return This builder for chaining.
     */
    public Builder setDefaultContentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      defaultContent_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private Image backgroundImage_;
    private com.google.protobuf.SingleFieldBuilderV3<
        Image, Image.Builder, ImageOrBuilder> backgroundImageBuilder_;
    /**
     * <code>.Image backgroundImage = 6;</code>
     * @return Whether the backgroundImage field is set.
     */
    public boolean hasBackgroundImage() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     * @return The backgroundImage.
     */
    public Image getBackgroundImage() {
      if (backgroundImageBuilder_ == null) {
        return backgroundImage_ == null ? Image.getDefaultInstance() : backgroundImage_;
      } else {
        return backgroundImageBuilder_.getMessage();
      }
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    public Builder setBackgroundImage(Image value) {
      if (backgroundImageBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        backgroundImage_ = value;
      } else {
        backgroundImageBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    public Builder setBackgroundImage(
        Image.Builder builderForValue) {
      if (backgroundImageBuilder_ == null) {
        backgroundImage_ = builderForValue.build();
      } else {
        backgroundImageBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    public Builder mergeBackgroundImage(Image value) {
      if (backgroundImageBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0) &&
          backgroundImage_ != null &&
          backgroundImage_ != Image.getDefaultInstance()) {
          getBackgroundImageBuilder().mergeFrom(value);
        } else {
          backgroundImage_ = value;
        }
      } else {
        backgroundImageBuilder_.mergeFrom(value);
      }
      if (backgroundImage_ != null) {
        bitField0_ |= 0x00000020;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    public Builder clearBackgroundImage() {
      bitField0_ = (bitField0_ & ~0x00000020);
      backgroundImage_ = null;
      if (backgroundImageBuilder_ != null) {
        backgroundImageBuilder_.dispose();
        backgroundImageBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    public Image.Builder getBackgroundImageBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getBackgroundImageFieldBuilder().getBuilder();
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    public ImageOrBuilder getBackgroundImageOrBuilder() {
      if (backgroundImageBuilder_ != null) {
        return backgroundImageBuilder_.getMessageOrBuilder();
      } else {
        return backgroundImage_ == null ?
            Image.getDefaultInstance() : backgroundImage_;
      }
    }
    /**
     * <code>.Image backgroundImage = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        Image, Image.Builder, ImageOrBuilder>
        getBackgroundImageFieldBuilder() {
      if (backgroundImageBuilder_ == null) {
        backgroundImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            Image, Image.Builder, ImageOrBuilder>(
                getBackgroundImage(),
                getParentForChildren(),
                isClean());
        backgroundImage_ = null;
      }
      return backgroundImageBuilder_;
    }

    private boolean fromIntercom_ ;
    /**
     * <code>bool fromIntercom = 7;</code>
     * @return The fromIntercom.
     */
    @Override
    public boolean getFromIntercom() {
      return fromIntercom_;
    }
    /**
     * <code>bool fromIntercom = 7;</code>
     * @param value The fromIntercom to set.
     * @return This builder for chaining.
     */
    public Builder setFromIntercom(boolean value) {

      fromIntercom_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>bool fromIntercom = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearFromIntercom() {
      bitField0_ = (bitField0_ & ~0x00000040);
      fromIntercom_ = false;
      onChanged();
      return this;
    }

    private boolean intercomHideUserCard_ ;
    /**
     * <code>bool intercomHideUserCard = 8;</code>
     * @return The intercomHideUserCard.
     */
    @Override
    public boolean getIntercomHideUserCard() {
      return intercomHideUserCard_;
    }
    /**
     * <code>bool intercomHideUserCard = 8;</code>
     * @param value The intercomHideUserCard to set.
     * @return This builder for chaining.
     */
    public Builder setIntercomHideUserCard(boolean value) {

      intercomHideUserCard_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>bool intercomHideUserCard = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIntercomHideUserCard() {
      bitField0_ = (bitField0_ & ~0x00000080);
      intercomHideUserCard_ = false;
      onChanged();
      return this;
    }

    private PublicAreaCommon publicAreaCommon_;
    private com.google.protobuf.SingleFieldBuilderV3<
        PublicAreaCommon, PublicAreaCommon.Builder, PublicAreaCommonOrBuilder> publicAreaCommonBuilder_;
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     * @return Whether the publicAreaCommon field is set.
     */
    public boolean hasPublicAreaCommon() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     * @return The publicAreaCommon.
     */
    public PublicAreaCommon getPublicAreaCommon() {
      if (publicAreaCommonBuilder_ == null) {
        return publicAreaCommon_ == null ? PublicAreaCommon.getDefaultInstance() : publicAreaCommon_;
      } else {
        return publicAreaCommonBuilder_.getMessage();
      }
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    public Builder setPublicAreaCommon(PublicAreaCommon value) {
      if (publicAreaCommonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        publicAreaCommon_ = value;
      } else {
        publicAreaCommonBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    public Builder setPublicAreaCommon(
        PublicAreaCommon.Builder builderForValue) {
      if (publicAreaCommonBuilder_ == null) {
        publicAreaCommon_ = builderForValue.build();
      } else {
        publicAreaCommonBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    public Builder mergePublicAreaCommon(PublicAreaCommon value) {
      if (publicAreaCommonBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0) &&
          publicAreaCommon_ != null &&
          publicAreaCommon_ != PublicAreaCommon.getDefaultInstance()) {
          getPublicAreaCommonBuilder().mergeFrom(value);
        } else {
          publicAreaCommon_ = value;
        }
      } else {
        publicAreaCommonBuilder_.mergeFrom(value);
      }
      if (publicAreaCommon_ != null) {
        bitField0_ |= 0x00000100;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    public Builder clearPublicAreaCommon() {
      bitField0_ = (bitField0_ & ~0x00000100);
      publicAreaCommon_ = null;
      if (publicAreaCommonBuilder_ != null) {
        publicAreaCommonBuilder_.dispose();
        publicAreaCommonBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    public PublicAreaCommon.Builder getPublicAreaCommonBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getPublicAreaCommonFieldBuilder().getBuilder();
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    public PublicAreaCommonOrBuilder getPublicAreaCommonOrBuilder() {
      if (publicAreaCommonBuilder_ != null) {
        return publicAreaCommonBuilder_.getMessageOrBuilder();
      } else {
        return publicAreaCommon_ == null ?
            PublicAreaCommon.getDefaultInstance() : publicAreaCommon_;
      }
    }
    /**
     * <code>.PublicAreaCommon public_area_common = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        PublicAreaCommon, PublicAreaCommon.Builder, PublicAreaCommonOrBuilder>
        getPublicAreaCommonFieldBuilder() {
      if (publicAreaCommonBuilder_ == null) {
        publicAreaCommonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            PublicAreaCommon, PublicAreaCommon.Builder, PublicAreaCommonOrBuilder>(
                getPublicAreaCommon(),
                getParentForChildren(),
                isClean());
        publicAreaCommon_ = null;
      }
      return publicAreaCommonBuilder_;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:EmojiChatMessage)
  }

  // @@protoc_insertion_point(class_scope:EmojiChatMessage)
  private static final EmojiChatMessage DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new EmojiChatMessage();
  }

  public static EmojiChatMessage getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<EmojiChatMessage>
      PARSER = new com.google.protobuf.AbstractParser<EmojiChatMessage>() {
    @Override
    public EmojiChatMessage parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<EmojiChatMessage> parser() {
    return PARSER;
  }

  @Override
  public com.google.protobuf.Parser<EmojiChatMessage> getParserForType() {
    return PARSER;
  }

  @Override
  public EmojiChatMessage getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

